FROM mindcollapse/malware-multi-scan-scanner:latest

RUN apt-get update && apt-get install unzip wget -y

WORKDIR /tmp

RUN wget -q http://b2b-download.mcafee.com/products/evaluation/vcl/l64/vscl-l64-604-e.tar.gz && \
    mkdir -p /usr/local/uvscan && \
    tar -xzf vscl-l64-604-e.tar.gz -C /usr/local/uvscan
    
RUN wget -q -Nc -r -nd -l1 -A "avvepo????dat.zip" http://download.nai.com/products/DatFiles/4.x/nai/ && \
    for avvepo in `ls avvepo*`; do unzip -o $avvepo; done && \
    for avvdat in `ls avvdat-*`; do unzip -o $avvdat -d /usr/local/uvscan; done && \
    /usr/local/uvscan/uvscan --decompress && \
    rm -rf /tmp/*

WORKDIR /worker

ENV BackendType=McAfee